package com.back.Service.impl;

import com.back.Dao.DeviceData;
import com.back.Mapper.DeviceDataMapper;
import com.back.Service.DeviceDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeviceDataServiceImpl implements DeviceDataService {

    @Autowired
    DeviceDataMapper deviceDataMapper;

    @Override
    public List<DeviceData> findAllDeice() {
        return deviceDataMapper.findAllDeice();
    }

    @Override
    public List<DeviceData> findDeviceById(Integer id) {
        return deviceDataMapper.findDeviceById(id);
    }

    @Override
    public Integer DelDevice(int id) {
        return deviceDataMapper.DelDevice(id);
    }

    @Override
    public Integer addDeviceData(DeviceData deviceData) {
        return deviceDataMapper.addDeviceData(deviceData);
    }

    @Override
    public Integer updateDeviceData(DeviceData deviceData) {
        return deviceDataMapper.updateDeviceData(deviceData);
    }
}
